import {BrowserRouter as Router, Routes, Route,} from 'react-router-dom';
import BiddingPage from "../pages/tendering/tender_record.tsx";
import SummaryForSeaTransportation from "../pages/tendering/summary_for_sea_transportation.tsx";
import SummaryForPipeFitting from "../pages/tendering/summary_for_pipe_fitting.tsx";
import SummaryForElectricalMaterial from "../pages/tendering/electrical_material";
import SummaryForSteel from "../pages/tendering/steel";

function AppRouter() {

    return (
        <Router>
            <Routes>
                <Route path="/" element={<BiddingPage />}/>
                <Route path="/summary/sea-transport/:tableId" element={<SummaryForSeaTransportation/>}/>
                <Route path="/summary/pipe-fitting/:tableId" element={<SummaryForPipeFitting/>}/>
                <Route path="/summary/electrical-material/:tableId" element={<SummaryForElectricalMaterial/>}/>
                <Route path="/summary/steel/:tableId" element={<SummaryForSteel/>}/>
            </Routes>
        </Router>
    );
}

export default AppRouter;
